package model.entity.novel;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity
 * @date 2025/6/4
 * @description 小说实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Novel {
    @Schema(description = "小说ID")
    private Integer novelId;

    @Schema(description = "小说名称")
    private String novelName;

    @Schema(description = "小说封面")
    private String image;

    @Schema(description = "小说作者")
    private String author;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "小说更新时间")
    private Date updateTime;

    @Schema(description = "小说创建时间")
    private Date createTime;

    @Schema(description = "小说评分")
    private Double score;

    @Schema(description = "评分人数")
    private Long scoreCount;

    @Schema(description = "章节数量")
    private Integer chapterNum;

    @Schema(description = "小说字数")
    private Integer count;

    @Schema(description = "阅读量")
    private Integer viewCount;

    @Schema(description = "小说状态 0:连载 1:完结 2:断更")
    private Integer status;

    @Schema(description = "小说描述")
    private String des;

    @Schema(description = "小说是否免费")
    private Integer free;

    @Schema(description = "小说搜索次数")
    private Integer searchCount;

    @Schema(description = "小说章节")
    private List<Chapter> chapters;

    @Schema(description = "小说是否加入书架")
    private boolean shelf;
}    